package com.yjb.demo.tdengine.service;

import com.yjb.demo.tdengine.domain.dto.IotDevicePointDataDTO;
import com.yjb.demo.tdengine.domain.dto.IotDeviceStateDTO;
import com.yjb.demo.tdengine.domain.dto.TdInsertDTO;

import java.util.Date;
import java.util.List;

/**
 * @author yinjinbiao
 * @create 2024/6/13 14:40
 */
public interface TaosService {

    void createTable(String stableName, Long deviceId, String location);

    void addColumn(String stableName, String columnName, String columnType);

    void insert(TdInsertDTO tdInsertDTO);

    IotDeviceStateDTO getLastRow(Long deviceId);

    /**
     * 查询数据
     */
    List<IotDevicePointDataDTO> getPointData(Long deviceId, String columnName, Date startTime, Date endTime);
}
